package com.lxw.report.meta.contract.SysMenu;
import com.lxw.report.meta.contract.BaseRequest;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class SysMenuCreateRequest extends BaseRequest {
    /**
     * 菜单级别
     */
    @NotNull
    private Integer level;
    /**
     * 父级菜单ID
     */
    @NotNull
    private Long parentId;
    /**
     * 菜单名称，没有则不显示
     */
    @NotBlank
    private String name;
    /**
     * 配置路由的标题
     */
    @NotBlank
    private String title;
    /**
     *菜单图标
     */
    @NotBlank
    private String icon;
    /**
     * 是否严格匹配
     */
    @NotNull
    private Boolean exact;
    /**
     * 菜单访问路径
     */
    @NotBlank
    private String path;
    /**
     *菜单组件地址
     */
    @NotBlank
    private String component;

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Boolean getExact() {
        return exact;
    }

    public void setExact(Boolean exact) {
        this.exact = exact;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getComponent() {
        return component;
    }

    public void setComponent(String component) {
        this.component = component;
    }
}
